let geoGfx = require('geoGfxBase');

let GfxGlowing = cc.Class({

    extends: geoGfx,

    _getShaderName(){
        return 'geoBlur';
    },

    properties: {
        blurAmount:{
            default: 0.5,
            tooltip:'模糊度',
        },
    },

    updateMat(dt){
        // var size = this.sprite.spriteFrame.getTexture();

        this.setMaterialParams({
            iBlurAmount: this.blurAmount,
        });
    },

    _preApplyShader(){
    },
    _postApplyShader(){
        this.updateMat();
    },
    _postUnapplyShader(){
    },
});

module.exports = GfxGlowing;